@include b('group-shifts') {
  position: relative;
  user-select: none;
  @include e('week') {
    display: flex;
    overflow: auto;
  }
  @include e('save') {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0;
    @include m('btn') {
      width: 64px;
      height: 36px;
      line-height: 36px;
      color: #fff;
      text-align: center;
      cursor: pointer;
      background-color: getCssVar(color, primary);
      border-radius: 4px;

      &:hover {
        opacity: 0.8;
      }
    }
  }
  @include e('item') {
    width: 120px;
    min-width: 120px;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    @include m('week-title') {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 54px;
      font-weight: 500;
      color: rgb(0 0 0 / 85%);
      background-color: #fafafa;
      border-bottom: 1px solid #e5e5e5;
    }

    &:first-child {
      border-left: 1px solid #e5e5e5;
    }
    @include m('shift-item') {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 54px;
      cursor: pointer;
      border-bottom: 1px solid #e5e5e5;

      &:hover {
        background-color: #f0f0f5;
      }
      @include when('selected') {
        color: white;
        background-color: getCssVar(color, primary);
      }
      @include when('restday') {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ccc;
      }
    }
  }
  @include e('weeklist') {
    position: absolute;
    width: 100%;
  }
  @include e('start') {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: left;
    width: 30px;
    height: 16px;
    padding-left: 4px;
    background-color: white;
    border-bottom-right-radius: 16px;

    @include m('item') {
      width: 4px;
      height: 6px;
      border-radius: 2px;
    }
    @include m('0') {
      background-color: getCssVar(color, primary);
    }
    @include m('1') {
      background-color: #f57231;
    }
    @include m('2') {
      background-color: #f2ac3a;
    }
  }
  @include e('differen-restdays') {
    @include m('shift-item') {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 54px;
      cursor: pointer;
      border-bottom: 1px solid #e5e5e5;

      &:hover {
        background-color: #f0f0f5;
      }
      @include when('selected') {
        color: white;
        background-color: getCssVar(color, primary);
      }
    }
  }
  @include e('work-rest') {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;

    &:hover {
      background-color: #f0f0f5;
    }
    @include when('selected') {
      color: white;
      background-color: getCssVar(color, primary);
    }
    @include when('work'){
      cursor: text;
      background-color: #ccc;
    }
  }
}
